INCLUDE= -I.
DEFINES=
EXTRA_CFLAGS= -Wall -I$(KERNEL_SRC_DIR)/include \
		-O2 -pipe \
		-ffixed-8 -DMODULE -DMODVERSIONS -finline-functions


obj-m += phc.o test1.o test2.o #test3.o test4.o test5.o test6.o test7.o

ALL:    clean archive module clean

install:
	gzip -9 -c lcdmod.ko >  lcdmod.ko.gz
	cp lcdmod.ko.gz /lib/modules/$(shell uname -r)/misc/
	depmod -a

uninstall:
	rm /lib/modules/$(shell uname -r)/misc/lcdmod.ko.gz
	depmod -a

module:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

archive:
	tar czfv archive.tar *

clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
	rm archive.tar || echo no archive

clean.end:
	cp lcdmod.ko /tmp/ifoayguiurew
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
	mv /tmp/ifoayguiurew lcdmod.ko
